package com.starlink.model.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.starlink.common.domain.BaseEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author zhanghong
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("schoolbag_order")
public class SchoolbagOrderDO extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;
    /** 订单编号 */
    @TableField("order_no")
    private String orderNo;
    /** 订单金额 */
    @TableField("order_amount")
    private BigDecimal orderAmount;
    /** 订单状态 订单状态 1待支付 2已支付 3已退款 4退款中 5已取消 */
    @TableField("order_status")
    private Integer orderStatus;
    /** 微信支付订单号 */
    @TableField("wx_order_no")
    private String wxOrderNo;
    /** 微信退款订单号 */
    @TableField("wx_refund_no")
    private String wxRefundNo;
    /** 用户id */
    @TableField("user_id")
    private Long userId;
    /** 订阅人 */
    @TableField("user_name")
    private String userName;
    /** 电话 */
    @TableField("mobile")
    private String mobile;
    /** 用户openId */
    @TableField("open_id")
    private String openId;
    /** 地址id */
    @TableField("address_id")
    private Long addressId;
    /** 购买的书包类型id */
    @TableField("schoolbag_id")
    private Long schoolbagId;
    /** 购买的书包规格id */
    @TableField("schoolbag_spec_id")
    private Long schoolbagSpecId;
    /** 所属分组id */
    @TableField("schoolbag_group_id")
    private Long schoolbagGroupId;
    /** 支付超时时间 */
    @TableField("timeout")
    private Date timeout;
    /** 取消时间 */
    @TableField("cancel_time")
    private Date cancelTime;
    /** 支付时间 */
    @TableField("pay_time")
    private Date payTime;
    /** 订单服务是否已完整 0否 1是 */
    @TableField("service_finish")
    private Integer serviceFinish;
}
